Skip to content

Add user-policy associations and Alembic migrations#71

Merged
anth-volk merged 15 commits intoapp-v2-migrationfrom
feat/user-policy
Feb 17, 2026
Merged

Add user-policy associations and Alembic migrations#71
anth-volk merged 15 commits intoapp-v2-migrationfrom
feat/user-policy

Conversation

@SakshiKekre
Copy link
Contributor

@SakshiKekre SakshiKekre commented Jan 12, 2026

This PR adds user-policy associations and Alembic migration infrastructure.

User-Policy Associations

  • Adds UserPolicy model to associate users with saved policies
  • Adds CRUD endpoints at /user-policies/
  • Adds 14 tests covering all endpoints

Endpoints

  • POST /user-policies/ - create association
  • GET /user-policies/?user_id=... - list by user (optional tax_benefit_model_id filter)
  • GET /user-policies/{id} - get by id
  • PATCH /user-policies/{id} - update label
  • DELETE /user-policies/{id} - delete association

Alembic Migration Infrastructure

Added Alembic for database migrations:

Archived old Supabase SQL migrations now handled by Alembic:

  • 20251229000000_add_parameter_values_indexes.sql
  • 20260103000000_add_poverty_inequality.sql
  • 20260111000000_add_aggregate_status.sql

Note: When Anthony's PR #77 merges, we'll need an Alembic merge migration to reconcile both branches.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants